﻿<Window x:Class="fleetIt.LinkUI"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:fleetIt="clr-namespace:fleetIt"
    Title="Insert Link" Height="115" Width="320" ShowInTaskbar="False" 
        ResizeMode="NoResize" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner">
    <Window.CommandBindings>
        <CommandBinding x:Name="LinkInsertCommand" Command="fleetIt:Commands.LinkInsert" 
                        CanExecute="LinkInsertCommand_CanExecute" Executed="LinkInsertCommand_Executed" />
    </Window.CommandBindings>
    <Grid Width="280">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="10" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Label Content="URL :" FontSize="12" Grid.Row="1" Grid.Column="0" />
        <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="4" Name="txtURL" />
        <Label Grid.Row="2" Grid.Column="0" Content="Service :"  />
        <ComboBox Name="cmbService"  Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3">
            <ComboBoxItem Tag="bit.ly" Selector.IsSelected="True">
                <TextBlock>bit.ly</TextBlock>
            </ComboBoxItem>
            <ComboBoxItem Tag="tiny.cc">
                <TextBlock>tiny.cc</TextBlock>
            </ComboBoxItem>
            <ComboBoxItem Tag="tinyurl.com">
                <TextBlock>tinyurl.com</TextBlock>
            </ComboBoxItem>
        </ComboBox>
        <Button Name="cmdInsertLink" Grid.Column="1" Grid.Row="3" Command="fleetIt:Commands.LinkInsert"
                Content="Insert Link" IsDefault="True" />
        <Button Name="cmdCancel" Grid.Column="2" Grid.Row="3" Content="Cancel" Click="cmdCancel_Click" IsCancel="True" />
    </Grid>
</Window>
